import collection.mutable.{HashMap, Map}
import dispatch._
import Http._
import json._
import Js._

import pci.recommend._
import pci.recommend.Delicious._
import CoDelicious._

val h = new Http

class Thermometer {
  var celsius: Float = _

  def fahrenheit = celsius * 9 / 5 + 32
  def fahrenheit_= (f: float){ celsius = (f-32) * 5 /9 }   // setter

  override def toString = fahrenheit + "F/" + celsius + "C"
}

val t = new Thermometer
t.fahrenheit = 32      // the way to use setter
assert(t.celsius == 0)



